package com.ruoyi.service.impl;

import com.ruoyi.dto.PartitionAddDTO;
import com.ruoyi.dto.PartitionDTO;
import com.ruoyi.dto.UPSDTO;
import com.ruoyi.mapper.PartitionMapper;
import com.ruoyi.mapper.UPSMapper;
import com.ruoyi.service.PartitionService;
import com.ruoyi.service.UPSService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author:zzm
 * @Date: 2024/8/30 13:36
 */
@Service
public class UPSServiceImpl implements UPSService {

    @Autowired
    private UPSMapper upsMapper;


    /**
     * 查询
     * @param dto
     * @return
     */
    @Override
    public List<UPSDTO> getList(UPSDTO dto) {
        List<UPSDTO> list = upsMapper.getList(dto.getWareHouse(), dto.getDestinationZIP(),dto.getCombination(),dto.getZone());
        return list;
    }

//    /**
//     * 新增
//     * @param dto
//     * @return
//     */
//    @Override
//    public Boolean add(PartitionAddDTO dto) {
//
//        return null;
//    }
}
